import http from "./request"; //记得引入进来

class UserService extends http {
  constructor() {
    super();
    this.baseUrl = "/user"
  }
  // 平台用户登录
  login(body) {
    return this.http({
      method: "post",
      url: "/login",
      body,
    }, {
      loading: true
    });
  }

  // 平台用户注册
  register(body) {
    return this.http({
      method: "post",
      url: "/register",
      body,
    }, {
      loading: true
    });
  }

    // 获取个人信息
    getUserInfo(body) {
      return this.http({
        method: "get",
        url: "/getInfo",
        body,
      }, {
        loading: true
      });
    }

}

export default new UserService();